<?php

include("admin/cls/sesion.php");
include("admin/cls/cls_user.php");

session_start();
if(!$_SESSION[""]->nombre)
	{
		header("Location:index.html");
	}
echo $_SESSION[""]->nombre, $id=$_SESSION[""]->id;

$user_id=$_GET["user_id"];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Alvarmat Site</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<script src="js/insert_comments.js"></script>
<script src="js/functions_comments.js"></script>
</head>
<body onload="loadComments(<?php echo $user_id ?>)">
<div id="wrapper">
<?php echo $user_id ?>
<div id="header-wrapper">
	<div id="logo">
		<h1><a href="index.php">SFELNET</a></h1>
		<p><em> by sfel</em></p>
	</div>
	<hr />
	<!-- end #logo -->
	<div id="header">
		<div id="menu">
			<ul>
				<li class="current_page_item"><a href="home.php">Home</a></li>
				<li><a href="#">Blog</a></li>
			</ul>
		</div>
		<!-- end #menu -->
		<div id="search">
			<form method="get" action="">
				<fieldset>
				<input type="text" name="s" id="search-text" size="15" />
				<input type="submit" id="search-submit" value="Search" />
				</fieldset>
			</form>
		</div>
		<!-- end #search -->
	</div>
	<!-- end #header -->
</div>
<!-- end #header-wrapper -->

<div id="page">
	<div id="content">
		<div class="post">
			<h2 class="title">Comentarios</h2>
			<div id="comments">
			<?php
			echo"
			<table>
				<form id=comment name=comment onsubmit=return insert_comment();  align=left>
				<tr>
				<td>
				<input name=id type=hidden id=id  value=$id />
				</td>
				</tr>
				<tr>
				<td>
				<font color=white> <label>Comentarios:</font></label>
				</td>
				</tr>
				<tr>
				<td>
				<input name=commentstext type=textArea id=commentstext  style='width: 500px; height: 40px';/>
				</td>
				</tr>
				<tr>
				<td>
				<input name=enviar type=button value=Comentar onclick=insert_comment(); />
				</td>
				</tr>		
				</form>
			</table>";
			?>
			</div>
			<div id="entry">				
			</div>
		</div>
		</div>
	<!-- end #content -->
	<div id="sidebar">
	<h2>Turpis nulla</h2>
		<ul>
			<li><a href="http://www.google.com">Google</a></li>
			<li><a href="http://www.facebook.com">Facebook</a></li>
			<li><a href="http://www.twitter.com">Twitter</a></li>
			<li><a href="http://www.sfel.net63.net">Servicios Computacionales</a></li>
			<li><a href="http://www.felcorp.com">otro</a></li>
		</ul>
	</div>
	<!-- end #sidebar -->
	<div style="clear: both;">&nbsp;</div>
</div>
<!-- end #page -->

<div id="footer">
<p>Copyright (c) 2008 sfelnet.com. All rights reserved. Design by <a href="www.sfel.net63.net"> Sfel. </a>.</p>
	</div>
<!-- end #footer -->
</div>
</body>
</html>
